package com.xiangmo.travel.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiangmo.travel.Entity.Attractions;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


/**
* @author a1304
* @description 针对表【attractions】的数据库操作Mapper
* @createDate 2023-03-18 20:27:15
* @Entity generator.Entity.Attractions
*/
@Repository
public interface AttractionsMapper extends BaseMapper<Attractions> {
    Page<Attractions> selectAllByType(@Param("page") Page<Attractions> page, @Param("type") String type);
    //搜索景点
    Page<Attractions> searchAttractions(@Param("page") Page<Attractions> page, @Param("content") String content);
    Page<Attractions> searchAttractionsByType(@Param("page") Page<Attractions> page, @Param("content") String content, @Param("type") String type);

}
